//
//  NSString+Base64.m
//  AI
//
//  Created by zjhc on 2018/1/16.
//  Copyright © 2018年 zjhc. All rights reserved.
//

#import "NSString+Base64.h"

@implementation NSString (Base64)

- (NSString *) stringPaddedForBase64 {
    NSUInteger paddedLength = self.length + (self.length % 3);
    return [self stringByPaddingToLength:paddedLength withString:@"=" startingAtIndex:0];
}

@end
